
#include "stdafx.h"
#include "mimosav2client.h"
#include "mimosav2clientDlg.h"
#include "TaskbarCtrl.h"


LRESULT Cmimosav2clientDlg::OnUmClientInitState(WPARAM wParam, LPARAM lParam)
{
	sendManager(TYPE_ALL);

	return 0;
}

LRESULT Cmimosav2clientDlg::OnUmClientShowWindow(WPARAM wParam, LPARAM lParam)
{
	if (IsIconic())
	{
		ShowWindow(SW_SHOWNORMAL);
		SetWindowPos(&CWnd::wndTop, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
		addTaskbar(GetSafeHwnd());
	}
	else
	{
		deleteTaskbar(GetSafeHwnd());
		ShowWindow(SW_SHOWMINIMIZED);
	}

	return 0;
}

LRESULT Cmimosav2clientDlg::OnUmClientDestroy(WPARAM wParam, LPARAM lParam)
{
	PostMessage(WM_COMMAND, IDOK, NULL);

	return 0;
}

LRESULT Cmimosav2clientDlg::OnUmClientAlarmNet(WPARAM wParam, LPARAM lParam)
{
	BOOL bIsConnected = (BOOL)wParam;

	return 0;
}
